-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Small improvements to CI #132
Conversation
ec6b0a2
to
e169406
Compare
The current CI failure is unrelated, but I'm not going to rerun it to spare the electrons. This PR will be rebased for certain, so it's not the final run anyway. |
s/__CHECK_HADDOCK__/$check_haddock/ | ||
s/__CLASH_VERSION__/$clash_version/" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had no idea you could chain commands like this. Cool.
We had two ways of setting -Werror: it was both in the `-fci` flag and in cabal.project.local. This was redundant. Constraining the Clash version can also be put in cabal.project.local.
The GitHub workflow file mentioned the master branch, but it's called main. Fixing this means we once again run CI on pushes to main.
Only the Haddock for clash-protocols was checked for warnings, and v2-sdist was only run for clash-protocols. The omission of clash-protocols-base was probably an oversight when splitting the package in two (#104).
This can drastically reduce CI running times when a PR is opened and it initially fails CI, as it no longer needs to rebuild dependencies on every new push.
e169406
to
84a5530
Compare
on: | ||
pull_request: | ||
push: | ||
branches: [master] | ||
branches: [main] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Soooo.... why did the pushes to main not trigger a CI run? :-S
This is why:
It tries to run for main as well, it just stumbles on the fact that I'm opening a tiny PR. |
I noticed a few points where CI could easily be improved a bit. See the individual commit messages for details.
I also bumped the Stack version in
stack.yaml
to the latest LTS.